package com.mxdx.edu.service.impl;

import com.mxdx.edu.dao.SysDictDao;
import com.mxdx.edu.service.ISysDictService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 字典表
 * 
 * @author howie
 *
 */

@Service
public class SysDictServiceImpl implements ISysDictService {

	@Resource
	private SysDictDao sysDictDao;

	@Override
	public Map<String, Object> findMapByMap(Map<String, Object> param) {
		List<Map<String, Object>> list = sysDictDao.findListByMap(param);
		if(list != null && list.size() > 0){
			Map<String, Object> map = list.get(0);
			return map;
		}
		return null;
	}

	@Override
	public List<Map<String, Object>> findListByMap(Map<String, Object> param) {
		return sysDictDao.findListByMap(param);
	}
}
